import request from '@/utils/request';

export async function query(): Promise<any> {
  return request('/api/users');
}

export async function queryNotices(): Promise<any> {
  return request('/api/notices');
}

export interface GetUserInfoParamsType {
  uId: string,
  userType: string,
  token: string,
  aId?: string,
}

/**
 * 获取用户信息
 * @param uId 
 * @param userType 
 * @param token 
 * @param aId 
 */
export async function getUserInfo(payload: GetUserInfoParamsType): Promise<any> {
	return request.post('/AgencyAdmin/getUserInfo', {
		data: {
			uId: payload.uId,
			userType: payload.userType,
			token: payload.token,
			aId: payload.aId,
		}
	})
}